import { useState } from "react"
export default function UseStateDemo() {
  const [count, setCount] = useState(0)

  return (
    <div>
      <span>现在计数:{count}</span>
      <button onClick={() => setCount(count + 1)}>+1</button>
    </div>
  )
}